import Vue from "vue";
import App from "./App.vue";

Vue.config.productionTip = false;

// 1.引入全局视图组件、css
import "@/components/index.js";
import "@/assets/globalCss/reset.css";

// 2.引入路由
import router from "@/router/index";

// 3.引入vuex的store
import store from "@/store";

// 4.引入mockServe.js
import "@/mock/mockServe"

// 5.引入swiper样式
import "swiper/css/swiper.css"

// import{reqPostSearchInfo} from '@/api'
// console.log(reqPostSearchInfo({}))

new Vue({
  // 注册路由,组件实例上会多一个$route,$router
  router,
  // 注册仓库,组件实例上会多一个$store
  store,
  // 全局事件总线$bus的配置
  beforeCreate(){
    Vue.prototype.$bus=this;
  },
  render: (h) => h(App),
}).$mount("#app");
